package aod.android.com.bernay.fixing.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * <p>文件描述：scrollview嵌套gridview <p>
 * <p>作者：${SYC}<p>
 * <p>创建时间：2019/4/11<p>
 */
public class PlanningGridView  extends GridView {
    public PlanningGridView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public PlanningGridView(Context context) {
        super(context);
    }

    public PlanningGridView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {

        int expandSpec = MeasureSpec.makeMeasureSpec(
                Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }


}
